home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX 6.2 Applications 1996 May
/
SGI IRIX 6.2 Applications 1996 May.iso
/
dist
/
impr_dev.idb
/
usr
/
impressario
/
bin
/
examples
/
libimp
/
README.z
/
README
Wrap
Text File
|
1996-05-06
|
2KB
|
55 lines
Example Programs
for
libimp
These example programs demonstrate the use of the libimp API. Each
program is designed to demonstrate a particular aspect of the API.
The programs also perform error handling using the library's error
handling facilities. Refer to the libimp(3) man pages for detailed
information on the libimp API.
imprle - Usage: imprle inimage outimage
Converts an SGI Image Format file to use run-length encoding
(RLE) compression. If the input image already uses RLE, running
this program simply copies the input image to the output image.
impshow - Usage: impshow image
Displays an SGI Image file on the screen.
impstat - Usage: impstat image ...
Displays statistics on the specified SGI Image Format file(s).
imptobw - Usage: imptobw inimage outimage
Converts an SGI Image file to a grey scale image.
impverbatim - Usage: impverbatim inimage outimage
Converts an SGI Image Format file to uncompressed format.
If the input image already is in uncompressed format, running
this program simply copies the input image to the output
image.
impzoom - Usage: impzoom [-f filter] [-b blur] [-l]
xfact yfact inimage outimage
Zooms the input image to the output image size. The type
of resampling filter may be selected with the -f switch and
a blurring factor may be specified with the -b switch. If -l
is not specified, xfact and yfact are interpreted as scaling
factors for x and y respectively. If -l is specified, xfact and
yfact are interpreted as the actual dimensions of the zoomed
image.